package com.zyg.jas.studentport.controller;
import com.zyg.jas.studentport.service.LeaveMessageService2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@Controller
@CrossOrigin
@RequestMapping("/sport/message")
public class LeaveMessageController2 {

    @Autowired
    private LeaveMessageService2 leaveMessageService;


    // 根据留言id删除留言
    @RequestMapping(value = "/delete/{id}",method = RequestMethod.GET)
    @ResponseBody
    public Integer reply(@PathVariable("id") Integer id){
        return  this.leaveMessageService.removeById(id);
    }
}
